﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>
<%List<Lng> list = v.data("list") as List<Lng>; %>

<%if (list.Count > 0){ %>
<% foreach (Lng row in list){ %>
<div class="infolist" onselectstart="return false;" title="<%=row.lngtitle %>-<%=row.lng %>" <%if (bllPowerGroupService.powercheck("system", "lngedit", modelpowergroup)) { %> ondblClick="javascript:parent.onbotton('_{language_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.LanguageController().LanaguageEdit, row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false);"<%} %>>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="5%"><input type="checkbox" name="selectinfoid" value="<%=row.Id %>" /></td>
			<td width="8%">
				<input type="hidden" name="infoid" id="infoid" value="<%=row.Id %>" />
				<input type="text" name="pid" size="3" value="<%=row.pid %>" class="infoInput"  onclick="if(this.value=='<%=row.pid %>'){this.value = '';}else {this.select();}" onblur="if(this.value ==''){this.value ='<%=row.pid %>';}" />
			</td>
			<td width="8%"><%=row.Id %></td>
			<td width="20%"><%=row.lngtitle %></td>
			<td width="10%"><%=row.lng %></td>
			<td width="8%" id="infotype">
				<table>
					<tr>
						<td><%if(row.isopen==1){ %><font class="colorthree strong">_{language_audit_ok}<%}else{%><font class="colorgreg strong">_{language_audit_no}<%} %></font></td>
					</tr>
				</table>
			</td>
			<td width="41%" id="infotype">
				<table>
					<tr>
						<%if (bllPowerGroupService.powercheck("system", "lngedit", modelpowergroup)) { %>
						<td><a class="setedit" onclick="javascript:parent.onbotton('_{language_edit_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.LanguageController().LanaguageEdit,row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false);" href="#body" title="_{language_edit_title}" hidefocus="true">_{setedit_botton}</a></td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("system", "lngcreat", modelpowergroup) && cvt.ToInt(v.data("isalong")) == 1)
                          { %>
						<td class="padding-left3"><a class="setedit3" onclick="javascript:submiturl('<%=link.to(new wojilu.Web.Controller.Admin.Qycms.LanguageController().LanguageAdd) %>?','#{load}','_{run_ok}','_{run_no}',true,'_{ST.language_creat_index_mess}','selectform','selectall','check_all')" href="#body" title="_{language_creat_index}" hidefocus="true">_{language_creat_index}</a></td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("system", "packcopy", modelpowergroup) && row.isuptype == 0)
                          { %>
						<td class="padding-left3"><a class="setedit3" onclick="javascript:parent.onbotton('_{language_copylanpack_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.LanguageController().LanguageCopy,row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false);" href="#body" title="_{language_copylanpack_title}" hidefocus="true">_{language_copylanpack_title}</a></td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("system", "mailpackcopy", modelpowergroup) && row.isuptype == 0)
                          { %>
						<td class="padding-left3"><a class="setedit3" onclick="javascript:parent.onbotton('_{language_mailpackcopy_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.LanguageController().LngPackCopyMail,row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false);" href="#body" title="_{language_mailpackcopy_title}" hidefocus="true">_{language_mailpackcopy_title}</a></td>
						<%} %>
                        <%if (bllPowerGroupService.powercheck("system", "smspackcopy", modelpowergroup) && row.isuptype == 0)
                          { %>
						<td class="padding-left3"><a class="setedit3" onclick="javascript:parent.onbotton('_{language_smspackcopy_title}','<%=link.to(new wojilu.Web.Controller.Admin.Qycms.LanguageController().LngPackCopySms, row.Id) %>?freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false);" href="#body" title="_{language_smspackcopy_title}" hidefocus="true">_{language_smspackcopy_title}</a></td>
						<%} %>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
<%} %>
<%}else{%>
<div class="infolist">
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td align="center">_{list_nothing_title}</td>
		</tr>
	</table>
</div>
<%} %>